import { Commit } from 'vuex'
import {config} from '/@/config'
const state: any = {
    layout: config.layout
}
const getters: any = {
    layout: (state:any) => state.layout
}

const mutations: any = {
    setLayout(state: any, params: object) {
        state.layout = params
    }
}
const actions: any = {
    setLayout(context: {commit: Commit}, params: object) {
        context.commit("setLayout", params)
    }
}

export default {state, getters, mutations, actions}